home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / TextHarvest / TextHarvest-Install.exe / {app} / LufSample01.txt < prev    next >
Text File  |  2005-02-11  |  4KB  |  96 lines

  1. ;===============================================================================
  2. ; Sample Lookup File
  3. ;===============================================================================
  4. ;
  5. ;  Lookup files are very similar to CSV (Comma Separated Value) files, but
  6. ;  there are some special rules:
  7. ;
  8. ;  - Null lines (or lines containing only spaces and tabs) are ignored
  9. ;  - Lines starting with a semi-colon (like this one) are ignored
  10. ;  - Untypeable characters can be represented with #decimal or $hex symbols
  11. ;  - You can use spaces to spread out fields (making the file easier to read)
  12. ;
  13. ;  --------------------------------------------------------------------------
  14. ;  Different Methods of Representing the Fields
  15. ;  --------------------------------------------------------------------------
  16. ;
  17. ;  --------  -------------------  -------------------------------------------
  18. ;  Method    Example              Comments
  19. ;  --------  -------------------  -------------------------------------------
  20. ;  Simple    Text                 No commas or spaces in the fields
  21. ;  Quoted    "Some text"          The surrounded quotes are removed
  22. ;  Quoted    "A ""text"" string"  Doubled-up quotes are taken as one quote
  23. ;  Decimal   #13#10               This would mean "Carriage Return/Linefeed"
  24. ;  Hex       $0D$0A               This would mean "Carriage Return/Linefeed"
  25. ;  Mixed     "CR is: "#10         Quoted & decimal (no spaces outside quotes)
  26. ;  Mixed     "LF is: "$0A         Quoted & hex
  27. ;  --------  -------------------  -------------------------------------------
  28. ;
  29. ;  You cannot mix Simple with Decimal or Hex (John$0A would not work)
  30. ;  If a field contains a comma, it MUST be placed in "quotes"
  31. ;
  32. ;===============================================================================
  33. ; Some sample lookup data, using (almost) standard CSV format
  34. ; (In standard CSV format, you would not put spaces between fields)
  35. ;-------------------------------------------------------------------------------
  36. ; Field 1 (by default, the LookupFile command uses this as the key field)
  37. ; |           Field 2 (by default, LookupFile considers this the data field)
  38. ; |           |           Field 3 (LookupFile CAN be told to use this field)
  39. ; |           |           |
  40.   "CAR"     , "Vehicle" , "Automobile"
  41.   "CAT"     , "Kitty"   , "Feline"
  42.   "HOME"    , "Abode"   , "Domicile"
  43.   "WORK"    , "Toil"    , "Business"
  44.   "LEISURE" , "Fun"     , "Diversion"
  45.  
  46. ;===============================================================================
  47. ; Examples of various methods of representing the fields
  48. ;===============================================================================
  49. ;
  50. ;  Three examples of simple fields
  51. ;
  52. ThisIsField1,ThisIsField2,ThisIsField3
  53. AA,xAAx,zAAz
  54. BB,[BB],(BB)
  55. ;
  56. ;  Two examples of quoted fields
  57. ;  Note the use of spaces outside of the quoted fields to line them up nicely
  58. ;
  59. "CC"  ,   " CC, Field 2 " ,  " CC, Field 3 "
  60. "DD"  ,   "[ DD ]"        ,         "( DD )"
  61. ;
  62. ;  Example of using simple, hex and quoted on the same line
  63. ;  Note that spaces are ignored
  64. ;  The example is equivalent to: 666,555,444
  65. ;
  66.    666,   $35$35$35,   "444"
  67. ;
  68. ;  Example of using quoted, hex and decimal on the same line
  69. ;  The example is equivalent to: 999,888,777
  70. ;
  71.    "999", #8$38$38,    #55#55#55
  72. ;
  73. ;  Example of using mixed representation, with liberal use of spaces
  74. ;  The example is equivalent to 333,222,111
  75. ;
  76.    "3"$33#51  ,   "22"$32  ,   # 49   $ 31   "1"
  77.  
  78. ;===============================================================================
  79. ; Character Remapping with MassChange
  80. ;===============================================================================
  81. ;
  82. ;  When a Lookup file is used with single characters, you can use the
  83. ;  MassChange command to remap character sets. In the following brief and
  84. ;  incomplete example of this technique, field one is a lowercase ASCII
  85. ;  character, while field two is the character in uppercase. Since this
  86. ;  particular Lookup file has three fields, we could make the third field
  87. ;  the EBCDIC or Unicode equivalent. However, in this case we'll set the
  88. ;  third field to the way the letter sounds.
  89. ;
  90. ;  Normally, of course, you would not put a remapping table in with other
  91. ;  Lookup information: the table would be by itself in the file and would
  92. ;  typically have only two fields. So here are 'a', 'b' and 'c' ...
  93. ;
  94. $61 , $41 , "Ay"
  95. $62 , $42 , "Bee"
  96. $63 , $43 , "See"